package com.suray.wcs.web.system.request;

import com.suray.wcs.service.enums.TaskType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter
@Setter
public class QueryPortNameRequest {
    private String district;
    private Integer taskType;
    private Integer programmeId;

    public boolean checkHasEmpty() {
        if (StringUtils.isEmpty(district) || taskType == null || TaskType.getByTaskType(taskType) == null) {
            return true;
        }
        return false;
    }
}
